/**
 * 此代码解释权归本人所有，如有侵权，请当场嗝屁
 */
package com.xiaoge.response;

/**
 * @description:返回状态码
 * @date:2020-10-14
 * @author:liufuyu
 */
public enum ResultCode implements CustomizeResultCode{
    SUCCESS(20000,"成功"),
    ERROR(20001,"失败"),
    PASS_NOT_CORRECT(3005,"密码不正确！请重新尝试"),
    NOT_LOGIN(3006,"尚未登录"),
    ARITHMETIC_EXCEPTION(3007,"算数异常"),
    USER_NO_FOUND(3008,"用户不存在"),
    INTRODUCTION_NOT_FOUND(2005,"没有找到这一条历史数据！有人侵入数据库强制删除了！"),
    PAGE_NOT_FOUND(404,"你请求的页面好像暂时飘走了！要不试试请求其他页面"),
    UNKNOW_SERVER_ERROR(2001,"未知异常，请联系管理员！")
    ;

    private Integer code;
    private String message;

    ResultCode(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
